# Maintainer: Noel Kuntze <noel.kuntze@contauro.com>
pkgname=py3-mujson
pkgdesc="Use the fastest JSON functions available at import time"
pkgver=1.4
pkgrel=0
arch="noarch"
url="https://github.com/mattgiles/mujson/"
license="MIT"
options="!check" # No test suite
makedepends="py3-gpep517 py3-setuptools py3-wheel python3-dev"
subpackages="$pkgname-pyc"

source="$pkgname-$pkgver.tar.gz::https://github.com/mattgiles/mujson/archive/refs/tags/$pkgver.tar.gz"

builddir="$srcdir"/mujson-$pkgver

build() {
	gpep517 build-wheel \
		--wheel-dir dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" dist/*.whl
}

sha512sums="
ad648338ad08c17afe3d22a0b6937cf4ad5aabf5cbf8041f6147fef084f4c2f9c163932b942069593353bb245e118739205cb81c67708a398bc904cc176ea42d  py3-mujson-1.4.tar.gz
"
